project(openmp)

set(CMAKE_CXX_STANDARD 11)

add_compile_options(-std=c99)
add_compile_options(-fopenmp)
add_link_options(-fopenmp)

add_executable(openmp-1HelloWorld "1HelloWorld.c")
add_executable(openmp-2HelloWorld "2HelloWorld.c")
add_executable(openmp-3FirstPrivateAndLastPrivate "3FirstPrivateAndLastPrivate.c")
add_executable(openmp-4ReductionExample "4ReductionExample.c")
add_executable(openmp-5NonIterativeStructureParallelism "5NonIterativeStructureParallelism.c")
add_executable(openmp-6Critical "6Critical.c")
add_executable(openmp-7Atomic "7Atomic.c")
add_executable(openmp-8Lock "8Lock.c")
add_executable(openmp-9Barrier "9Barrier.c")
add_executable(openmp-10Master "10Master.c")
add_executable(openmp-11Static "11Static.cpp")
add_executable(openmp-12Dynamic "12Dynamic.cpp")
add_executable(openmp-13Guided "13Guided.cpp")
add_executable(openmp-14RuntimeLibraryFunctions "14RuntimeLibraryFunctions.c")
add_executable(openmp-15SpeedTest1 "15SpeedTest1.c")
add_executable(openmp-16SpeedTest2 "16SpeedTest2.c")